<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%--<%@ taglib prefix="jo" uri="/struts-json-tags" %>--%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/commons.js"></script>
<s:url id="urlCarpetas" action="jsonCarpetas" />
<s:url id="urlSubCarpetas" action="jsonCarpetasSubLista" />
<s:url includeParams="none" id="CrearCarpetaPaso1"
	action="CrearCarpetaPaso1" />
<s:url id="urlResumenCortoCarpeta" action="resumenCortoCarpeta">
	<s:param name="id" value="%{c.idCarpeta}" />
</s:url>
<style>
.column {
	width: 80%;
	float: left;
	padding-bottom: 100px;
}
</style>
<div id="col1" style="width: 65%">
	<div id="col1_content" class="clearfix">
		<sjg:grid autoencode="false" id="gridedittable" caption="Carpetas"
			dataType="json" href="%{urlCarpetas}" pager="true" width="635"
			navigator="true" gridModel="gridModel" rowList="15,30,60" rowNum="30"
			navigatorDelete="false" navigatorAdd="false" navigatorEdit="false"
			onSelectRowTopics="rowselectCarpetasEditar,rowselectCarpetasCrt,rowselectCarpetasCaratula,rowselectCarpetasMicDta,rowselectCarpetasPreview"
			navigatorSearchOptions="{sopt:['eq']}">
			<sjg:grid autoencode="false" id="editarSubCarpeta"
				subGridUrl="%{urlSubCarpetas}" gridModel="gridModel"
				onSelectRowTopics="rowselectCarpetasEditar">
				<sjg:gridColumn name="numeroCarpeta" index="numeroCarpeta"
					search="true" title="Nro. Carpeta" key="true" required="false" />
				<sjg:gridColumn name="numeroContenedorFormateado"
					index="numeroContenedor" search="false" id="numeroContenedor"
					title="Contenedor" />
			</sjg:grid>
			<sjg:gridColumn name="numeroCarpeta" index="numeroCarpeta"
				search="true" searchoptions="{sopt:['eq']}" title="Numero"
				key="true" required="false" />
			<sjg:gridColumn name="referenciaDestino" index="referenciaDestino"
				search="false" title="Nro. Paraguay" key="true" required="false" />
			<sjg:gridColumn name="numeroContenedorFormateado"
				index="numeroContenedor" search="false" id="numeroContenedor"
				title="Contenedor" />
			<sjg:gridColumn name="transportadora" index="transportadora"
				search="false" id="transportadora" title="Transportadora" />
			<sjg:gridColumn name="terminal" index="terminal" search="false"
				id="terminal" title="Terminal" />
			<sjg:gridColumn name="agenciaMaritima" index="agenciaMaritima"
				search="false" id="agenciaMaritima" title="Agencia" />
			<sjg:gridColumn name="fechaLlegadaBuque" align="center"
				search="false" index="fechaLlegadaBuque" id="fechaLlegadaBuque"
				title="Llegada" formatter="date"
				formatoptions="{newformat : 'd-m-Y', srcformat : 'Y-m-d H:i:s'}" />
		</sjg:grid>

	</div>
</div>

<div id="col3">
	<div id="col3_content">
		<ul>
			<li><sj:a id="Carpetas1" href="%{CrearCarpetaPaso1}"
					targets="main">CREAR CARPETA</sj:a></li>
			<li><sj:div id="gridEditarCarpetas" /></li>
			<li><sj:div id="gridCaratula" /></li>
			<li><sj:div id="gridCrt" /></li>
			<li><sj:div id="gridMicDta" /></li>
		</ul>
		<div id='previewID' class='result ui-widget-content ui-corner-all'>
		</div>
	</div>
</div>
<!-- IE Column Clearing -->
<div id="ie_clearing">&#160;</div>



